package com.lys.eduservice.client;


import com.lys.eduservice.entity.frontVo.UcenterMember;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "service-ucenter" ,fallback = UcenterDegradeFeignClient.class) //调用的服务名称
@Component
public interface UcenterClient {

    //根据id获取用户信息
    @GetMapping("/educenter/member/getInfoUc/{id}")
    public UcenterMember getInfo(@PathVariable("id") String id);
}
